Ext.define('TS.view.base.DeptList' ,{
    extend: 'Ext.grid.Panel',
    alias : 'widget.deptlist',
    title : '部门信息',
    columnLines: true,
    bodyPadding:0,
    closable: true,
    padding : '1 1 1 0',
    store: 'base.DeptStore',
    columns:[
            {header: '部门名称', dataIndex: 'deptName', flex: 1}
    ],
    tbar :[
				{xtype:'button',action:'add',iconCls:'tree-add-button'},				
				{xtype:'button',action:'upd',iconCls:'tree-upd-button'},
				{xtype:'button',action:'del',iconCls:'tree-del-button'}
	],
	initComponent:function(){
		this.callParent(arguments);
	},
	listeners: {
		render:{
			fn:function(){
				this.store.load();
			}
		}
	}
});